﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessObjects.Base {
    public abstract class BaseIdentifier : IIdentifier {

        #region Construction

        protected BaseIdentifier() { }

        #endregion

        #region Properties

        private Guid guid;
        public Guid MyGuid {
            get {
                if(this.guid == Guid.Empty) {
                    this.guid = Guid.NewGuid();
                }
                return this.guid;
            }
            set { this.guid = value; }
        }

        #endregion

    }
}
